package testing;

import static org.junit.Assert.*;
import java.sql.SQLException;
import org.junit.Test;
import acm.*;

public class JUnitBinarioPalindrome {
	
	

	@Test
	public void prueba1()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(2, 3));
		
	}
	
	@Test
	public void prueba2()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(null, 3));
		
	}
	
	@Test
	public void prueba3()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(2, -3));
		
	}

	@Test
	public void prueba4()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(100, 5));
		
	}
	
	@Test
	public void prueba5()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo("lala", 3));
		
	}
	
	@Test
	public void prueba6()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(2, 4343));
		
	}
	
	@Test
	public void prueba7()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(1, 2000));
		
	}
	
	@Test
	public void prueba8()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(0, 7));
		
	}
	
	@Test
	public void prueba9()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(3.6, 20));
		
	}
	
	@Test
	public void prueba10()throws SQLException{
		BinarioPalindrome b1 = new BinarioPalindrome();
		
		assertTrue(b1.validarIntervalo(2, 2));
		
	}

}
